package com.yunxi.service.localService.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.stock.PartnerStockOutMapper;
import com.yunxi.model.stock.PartnerStockOut;
import com.yunxi.order.pojo.OrderApproveRespVO;
import com.yunxi.service.localService.PartnerStockOutService;
import com.yunxi.stock.pojo.PartnerStockOutReqVO;
import com.yunxi.stock.pojo.PartnerStockOutRespVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 渠道商退车出库表 服务实现类
 * </p>
 *
 * @author chenmeng
 * @since 2019-07-24
 */
@Service(value = "partnerStockOutServiceImpl")
public class PartnerStockOutServiceImpl extends ServiceImplPlus<PartnerStockOutMapper, PartnerStockOut> implements PartnerStockOutService {

    @Override
    public PageInfo<PartnerStockOutRespVO> queryPartnerStockOut(PartnerStockOutReqVO vo, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<PartnerStockOutRespVO> resp = this.baseMapper.queryPartnerStockOut(vo);
        PageInfo<PartnerStockOutRespVO> pageInfo = new PageInfo<>(resp);
        return pageInfo;
    }
}
